package org.zsl.lesson4_aop.service.proxy;

public class RentProxy implements IRent{
    private  IRent rentor;

    public RentProxy(IRent rentor){
         this.rentor = rentor;
    }


    public  void  fee(){
        System.out.println("缴纳中介费....");
    }

    public void mange(){
        System.out.println("负责维护...");
    }

    @Override
    public void rent() {
        this.fee();
        this.rentor.rent();
        this.mange();

    }
}
